run python validation from javascript